﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using TuyenSinh.DAL;

namespace TuyenSinh.BLL
{
    public class BSchool
    {
        public DataTable GetRegion()
        {
            return new DASchools().GetRegion().Tables[0];
        }
        public DataTable GetSchoolType()
        {
            return new DASchools().GetSchoolType().Tables[0];
        }
        public DataTable GetSchoolGroup()
        {
            return new DASchools().GetSchoolGroup().Tables[0];
        }

        public bool InsertSchool(string sName, int iRegionId, string sDesc, string sAddress, int SchoolTypeId, int sSchoolGroupId, int isActive, int isDelete)
        {
            return new DASchools().InsertSChool(sName, iRegionId, sDesc, sAddress, SchoolTypeId, sSchoolGroupId, isActive, isDelete);
        }

        public DataTable GetSchool(string sName, int iRegion, int iShoolType, int iSchoolGroup, int isActive, int isDelete)
        {
            return new DASchools().GetSchool(sName, iRegion, iShoolType, iSchoolGroup, isActive, isDelete).Tables[0];
        }
    }
}
